package com.sandy.demo;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

import java.util.Locale;

@Configuration
@ComponentScan(basePackages = {"com.sandy.demo"})
@Import({SecurityConfig.class, JpaConfig.class})
@EnableJpaAuditing//(auditorAwareRef = "auditorAware")
public class AppConfig {

    public AppConfig() {
        Locale.setDefault(Locale.CHINA);
    }
}
